<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class=kontakt>
<br/>
<div class=formularz>
<fieldset class=obrys>	
<br/>
<%HttpSession sesja = request.getSession(true);
if(sesja.getAttribute("lang").equals("en")){%>
<h1>Calculate the price for your package</h1><br/><br/>
<img src='images/paczka2.png' height=100px width=100px><br/>
Please fill the form <br><br/>
<form id=kalkuluj name=kalkuluj onSubmit='Kalkuluj())'>
	<table class=opcje >
	<tr>
		<td align="center" valign="middle"> 	
		<table>
			<tr>
				<td width=180px;>Package weight (kg):</td><td><input type='text' id='waga' name='waga' size='25' onKeyPress='TylkoLiczby(event)'/></td><td id=td1></td>
			</tr>
			<tr>
				<td>Insurance:</td><td align="center"><input type='checkbox' id='ubezpieczenie' onClick='Ubezpieczenie()' /></td><td id=td2></td>
			</tr>
			<tr>
				<td>Package value (PLN):</td><td align="center"><input type='text' id='wartosc' size='25' onKeyPress='TylkoLiczby(event)' disabled/></td><td id=td3></td>
			</tr>	
			<tr>
				<td>Ordering a courier online:</td><td align="center"><input type='checkbox' id='kurier'/></td><td id=td4></td>
			</tr>
			<tr>
				<td>Payment by the recipient:</td><td align="center"><input type='checkbox' id='pobranie'/></td><td id=td5></td>	
			</tr>
			<tr>
				<td>Shipment packaging:</td><td align="center"><input type='checkbox' id='pakowanie'/></td><td id=td6></td>
			</tr>	
		</table>
			</td>
	</tr>
	</table>
	<br/>
<input class=przycisk type='button' id='ok' name='ok' value='Count' onClick='Kalkuluj()' style='width:100px'>
<input class=przycisk type='button' name='clean' value='Clear' onClick='this.form.reset()' style='width:100px'>
</form>
<br/>
<div id=wynik>&nbsp;<br>&nbsp;</div>
<br/>
<%}else{ %>
<h1>Oblicz cenę za swoją paczkę</h1><br/><br/>
<img src='images/paczka2.png' height=100px width=100px><br/>
Wypełnij formularz<br><br/>
<form id=kalkuluj name=kalkuluj onSubmit='Kalkuluj())'>
	<table class=opcje >
	<tr>
		<td align="center" valign="middle"> 	
		<table>
			<tr>
				<td width=180px;>Waga przesyłki (kg):</td><td><input type='text' id='waga' name='waga' size='25' onKeyPress='TylkoLiczby(event)'/></td><td id=td1></td>
			</tr>
			<tr>
				<td>Ubezpieczenie:</td><td align="center"><input type='checkbox' id='ubezpieczenie' onClick='Ubezpieczenie()' /></td><td id=td2></td>
			</tr>
			<tr>
				<td>Wartość paczki (PLN):</td><td align="center"><input type='text' id='wartosc' size='25' onKeyPress='TylkoLiczby(event)' disabled/></td><td id=td3></td>
			</tr>	
			<tr>
				<td>Odbiór przez kuriera:</td><td align="center"><input type='checkbox' id='kurier'/></td><td id=td4></td>
			</tr>
			<tr>
				<td>Pobranie:</td><td align="center"><input type='checkbox' id='pobranie'/></td><td id=td5></td>	
			</tr>
			<tr>
				<td>Pakowanie paczki:</td><td align="center"><input type='checkbox' id='pakowanie'/></td><td id=td6></td>
			</tr>	
		</table>
			</td>
	</tr>
	</table>
	<br/>
<input class=przycisk type='button' id='ok' name='ok' value='Oblicz' onClick='Kalkuluj()' style='width:100px'>
<input class=przycisk type='button' name='clean' value='Wyczyść' onClick='this.form.reset()' style='width:100px'>
</form>
<br/>
<div id=wynik>&nbsp;<br>&nbsp;</div>
<br/>
<%}%>
<br/>
</fieldset>
</div>
</div>

</body>
</html>